<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>destructuring</title>
</head>
<body>
<script>

    let [a,b,c]=new Set(['a','b','c']);
    console.log(a)
    console.log(b)
    console.log(c)

    function *fibs() {
        let a=0;
        let b=1;
        while(true){
            yield a;
            [a,b]=[b,a+b];
        }
    }
    var [first,second,third,fourth,fifth,sixth]=fibs();
    console.log(sixth);
</script>
</body>
</html>